<div class="eventAttendees index">
	<h2>
		<?php __('EventAttendees');?>
	</h2>
	<p>
		<?php
		echo $paginator->counter(array(
				'format' => __('Page %page% of %pages%, showing %current% records out of %count% total, starting on record %start%, ending on %end%', true)
		));
		?></p>
	<table cellpadding="0" cellspacing="0">
		<tr>
			<th><?php echo $paginator->sort('id');?>
			</th>
			<th><?php echo $paginator->sort('event_id');?>
			</th>
			<th><?php echo $paginator->sort('user_id');?>
			</th>
			<th><?php echo $paginator->sort('created');?>
			</th>
			<th><?php echo $paginator->sort('modified');?>
			</th>
			<th><?php echo $paginator->sort('description');?>
			</th>
			<th><?php echo $paginator->sort('status');?>
			</th>
			<th class="actions"><?php __('Actions');?>
			</th>
		</tr>
		<?php
		$i = 0;
		foreach ($eventAttendees as $eventAttendee):
		$class = null;
		if ($i++ % 2 == 0) {
		$class = ' class="altrow"';
	}
	?>
		<tr <?php echo $class;?>>
			<td><?php echo $eventAttendee['EventAttendee']['id']; ?></td>
			<td><?php echo $html->link($eventAttendee['Event']['title'], array('controller' => 'events', 'action' => 'view', $eventAttendee['Event']['id'])); ?>
			</td>
			<td><?php echo $html->link($eventAttendee['User']['id'], array('controller' => 'users', 'action' => 'view', $eventAttendee['User']['id'])); ?>
			</td>
			<td><?php echo $eventAttendee['EventAttendee']['created']; ?></td>
			<td><?php echo $eventAttendee['EventAttendee']['modified']; ?></td>
			<td><?php echo $eventAttendee['EventAttendee']['description']; ?></td>
			<td><?php echo $eventAttendee['EventAttendee']['status']; ?></td>
			<td class="actions"><?php echo $html->link(__('View', true), array('action' => 'view', $eventAttendee['EventAttendee']['id'])); ?>
				<?php echo $html->link(__('Edit', true), array('action' => 'edit', $eventAttendee['EventAttendee']['id'])); ?>
				<?php echo $html->link(__('Delete', true), array('action' => 'delete', $eventAttendee['EventAttendee']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $eventAttendee['EventAttendee']['id'])); ?>
			</td>
		</tr>
		<?php endforeach; ?>
	</table>
</div>
<div class="paging">
	<?php echo $paginator->prev('<< '.__('previous', true), array(), null, array('class'=>'disabled'));?>
	|
	<?php echo $paginator->numbers();?>
	<?php echo $paginator->next(__('next', true).' >>', array(), null, array('class' => 'disabled'));?>
</div>
<div class="actions">
	<ul>
		<li><?php echo $html->link(__('New EventAttendee', true), array('action' => 'add')); ?>
		</li>
		<li><?php echo $html->link(__('List Events', true), array('controller' => 'events', 'action' => 'index')); ?>
		</li>
		<li><?php echo $html->link(__('New Event', true), array('controller' => 'events', 'action' => 'add')); ?>
		</li>
		<li><?php echo $html->link(__('List Users', true), array('controller' => 'users', 'action' => 'index')); ?>
		</li>
		<li><?php echo $html->link(__('New User', true), array('controller' => 'users', 'action' => 'add')); ?>
		</li>
	</ul>
</div>
